﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace DSheet.Core
{
    public class DBContext : IDisposable
    {
        public SqlConnection DBConnection { get; private set; }

        public DBContext()
        {
            DBConnection = new SqlConnection("server=.;database=DExcelDB;uid=sa;pwd=pass@word1");
            DBConnection.Open();
        }

        public void Dispose()
        {
            DBConnection.Close();
        }
    }
}
